package com.winshare.saleAssistant.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.winshare.saleAssistant.dao.SchoolMapper;
import com.winshare.saleAssistant.model.School;
import com.winshare.saleAssistant.service.ISchoolService;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 学校基础信息 服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2020-11-06
 */
@Service
public class SchoolServiceImpl extends ServiceImpl<SchoolMapper, School> implements ISchoolService {



    @Override
    public List<Map<String, Object>> getList(Page<Map<String, Object>> page) {
        return this.baseMapper.getList(page);
    }

    @Override
    public List<School> selectNumber(Page<School> page, Boolean checkbox, String province, String city, String areaName, String condition) {
        return this.baseMapper.selectNumber(page,checkbox,province,city,areaName,condition);
    }

    @Override
    public Integer getSchoolCount(Date starTime, Date endTime) {
        return this.baseMapper.getSchoolCount(starTime,endTime);
    }

    @Override
    public Integer getCTotal(Date starTime, Date endTime,String productName) {
        return this.baseMapper.getCTotal(starTime,endTime,productName);
    }

    @Override
    public Integer getATotal(Date starTime, Date endTime,String productName) {
        return this.baseMapper.getATotal(starTime,endTime,productName);
    }

    @Override
    public String getLastTime() {
        return this.baseMapper.getLastTime();
    }

    @Override
    public Integer getSchoolCount1(Date starTime, Date endTime, String productName) {
        return this.baseMapper.getSchoolCount1(starTime,endTime,productName);
    }
}
